from enum import Enum


class Font(Enum):
    SIMSUN = "宋体"
    SIMKAI = "楷体"

    # SIMLI = "隶书"
    # STSONG = "华文宋体"
    # STXINGKA = "华文行楷"

    @staticmethod
    def values():
        return tuple(f.value for f in Font)

    @staticmethod
    def names():
        return tuple(f.name.lower() for f in Font)

    @staticmethod
    def get_name(value):
        for k, v in Font.__members__.items():
            if v.value == value:
                return k.lower()
        return None
